package com.istock.union.user.model;

import java.io.Serializable;
import java.util.Date;

public class TenantInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * VARCHAR(24) 必填<br>
     * 
     */
    private String id;

    /**
     * VARCHAR(50)<br>
     * 租户编号
     */
    private String tenantCode;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 租户名称
     */
    private String tenantName;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 负责人
     */
    private String leader;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 联系电话
     */
    private String phone;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 邮箱
     */
    private String email;

    /**
     * DECIMAL(5) 默认值[0]<br>
     * 部门状态:1正常,2停用
     */
    private Integer status;

    /**
     * DECIMAL(5)<br>
     * 
     */
    private Integer delFlag;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 创建者
     */
    private String createBy;

    /**
     * TIMESTAMP(19)<br>
     * 创建时间
     */
    private Date createTime;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 更新者
     */
    private String updateBy;

    /**
     * TIMESTAMP(19)<br>
     * 更新时间
     */
    private Date updateTime;

    /**
     * VARCHAR(24) 必填<br>
     * 获得 
     */
    public String getId() {
        return id;
    }

    /**
     * VARCHAR(24) 必填<br>
     * 设置 
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * VARCHAR(50)<br>
     * 获得 租户编号
     */
    public String getTenantCode() {
        return tenantCode;
    }

    /**
     * VARCHAR(50)<br>
     * 设置 租户编号
     */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode == null ? null : tenantCode.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 租户名称
     */
    public String getTenantName() {
        return tenantName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 租户名称
     */
    public void setTenantName(String tenantName) {
        this.tenantName = tenantName == null ? null : tenantName.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 负责人
     */
    public String getLeader() {
        return leader;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 负责人
     */
    public void setLeader(String leader) {
        this.leader = leader == null ? null : leader.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 联系电话
     */
    public String getPhone() {
        return phone;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 联系电话
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 邮箱
     */
    public String getEmail() {
        return email;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 邮箱
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    /**
     * DECIMAL(5) 默认值[0]<br>
     * 获得 部门状态:1正常,2停用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * DECIMAL(5) 默认值[0]<br>
     * 设置 部门状态:1正常,2停用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * DECIMAL(5)<br>
     * 获得 
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * DECIMAL(5)<br>
     * 设置 
     */
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 创建者
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 创建者
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 更新者
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 更新者
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tenantCode=").append(tenantCode);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", leader=").append(leader);
        sb.append(", phone=").append(phone);
        sb.append(", email=").append(email);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TenantInfo other = (TenantInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTenantCode() == null ? other.getTenantCode() == null : this.getTenantCode().equals(other.getTenantCode()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()))
            && (this.getLeader() == null ? other.getLeader() == null : this.getLeader().equals(other.getLeader()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTenantCode() == null) ? 0 : getTenantCode().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        result = prime * result + ((getLeader() == null) ? 0 : getLeader().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}